import request from '@/utils/request'

// 用户注册
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 用户登录
export const login = (data) => {
  return request.post('/user/login ', data)
}

// 获取用户信息
export const getUser = () => {
  return request.get('/user')
}

